package org.linloong.modules.apis.ai.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author dbo
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "当前历史会话", description = "用户当前会话历史记录")
@TableName("home_chat_current_history")
public class CurrentChatHistory implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "会话ID")
    private String sessionId;

    @Schema(description = "保存内容")
    private String content;

    @Schema(description = "会话类型，0-用户,1-大模型")
    private String sender;

    @Schema(description = "预留状态字段，0-完成；1-停止")
    private String state;

    @Schema(description = "会话时间戳，排序用")
    private Long timestamp;

}
